<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <input
      id="input"
      type="text"
      name="username"
      value="..."
      age="20"
      href="abcd"
    />
    <script>
      // 同步
      const input = document.getElementById("input");
      console.log(input.id);
      console.log(input.name);
      console.log(input.type);
      console.log(input.value);
      console.log(input.href);
    </script>
  </body>
</html>
